package com.ljf.weixin;

import java.util.function.BiFunction;

/**
 * 说明：
 *
 * @Auther: lijinfeng
 * @Date: 2024/6/21
 */
public class WeiXinHandler {

    /**
     * 用户校验函数，验证用户信息，正确返回用户ID 错误返回0L
     *
     * 入参：openid ，phoneNum
     *
     * 出参：userId
     *
     */
    public BiFunction<String,Long, Long> checkWeiXinUserHandler = (u, p) ->{
        return 0L;
    };
    public void setCheckWeiXinUserHandler(BiFunction<String, Long, Long> checkWeiXinUserHandler) {
        this.checkWeiXinUserHandler = checkWeiXinUserHandler;
    }

}
